package com.huangliusong.desigin.pattern.structual.decorator.v1;

/**
 * @author huangliusong
 * @since 2018/10/11
 * {@link }
 */
public class Test {
    public static void main(String[] args) {
        Battercake battercake=new Battercake();
        System.out.println(battercake.getDesc()+"  销售的价格为："+battercake.cost());
        Battercake battercake1egg=new BattercakeWithEgg();
        System.out.println(battercake1egg.getDesc()+"  销售的价格为："+battercake1egg.cost());
        Battercake battercakesausagger=new BattercakeWithEggSausage();
        System.out.println(battercakesausagger.getDesc()+"  销售的价格为："+battercakesausagger.cost());
    }
}
